#!/usr/bin/env python
from str_ananalyzer import StrAnalyzer
from dict.drugs_dict import drugs
import time
import random
import sys

__author__ = 'gogo'

__version__ = '0.0.1'

# print drugs

sa = StrAnalyzer()

cnt = 0
for drug in drugs:
    if len(sa.get_bda_link(drug)) > 0:
        cnt += 1
        print drug, sa.get_bda_link(drug)

print cnt

